package com.campus.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.campus.entity.Clazz.Clazz;
import com.campus.entity.System.SysUser;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 教师表
 *
 * @TableName t_teacher
 */
@TableName(value = "t_teacher")
@Data
public class Teacher implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 工号
     */
    @TableField(value = "account")
    private String account;
    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;
    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;
    /**
     * 教师身份证号
     */
    @TableField(value = "identity")
    private String identity;
    /**
     * 教师电话
     */
    @TableField(value = "tel")
    private String tel;
    /**
     * 所属学院
     */
    @TableField(value = "college")
    private String college;
    /**
     * 教师学历
     */
    @TableField(value = "degree")
    private String degree;
    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    @TableLogic
    @TableField(value = "del_flag")
    private Integer delFlag;
    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;
    @TableField(exist = false)
    private List<Clazz> clazzList;

    @TableField(exist = false)
    private List<SysUser> userList;
}